#include "logo.h"

char *random(void)
{
     int i;
     double j;
     int number;
     char *num;
     char *ans;
     char numStr[MAXVALUE] ="\0";
     char ansStr[MAXVALUE] ="\0";
     
     num =numStr;
     ans =ansStr;
     strcpy(num,getValue());
     number =atoi(num);
     
     srand( time(NULL));
     i =rand() % number;
     j =i;
     printf("random is %d\n",i);
     sprintf(ans, "%lf",j);
     printf("randoms is %s\n",ans);

     return ans;
}
